package org.jeecg.modules.xs.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 商品
 * @Author: sss
 * @Date:   2022-02-15
 * @Version: V1.0
 */
@ApiModel(value="xs_product_info对象", description="商品")
@Data
@TableName("xs_product_info")
public class ProductInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**商品编码*/
	@Excel(name = "商品编码", width = 15)
    @ApiModelProperty(value = "商品编码")
    private java.lang.String productNum;
	/**供货商*/
	@Excel(name = "供货商", width = 15, dictTable = "xs_merchant_info", dicText = "mer_name", dicCode = "id")
    @Dict(dictTable = "xs_merchant_info", dicText = "mer_name", dicCode = "id")
    @ApiModelProperty(value = "供货商")
    private java.lang.String merchantInfoId;
	/**供货商名称*/
	@Excel(name = "供货商名称", width = 15)
    @ApiModelProperty(value = "供货商名称")
    private java.lang.String merchantInfoName;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private java.lang.String name;
	/**副标题*/
	@Excel(name = "副标题", width = 15)
    @ApiModelProperty(value = "副标题")
    private java.lang.String subTitle;
	/**商品主图*/
	@Excel(name = "商品主图", width = 15)
    @ApiModelProperty(value = "商品主图")
    private java.lang.String mainImg;
	/**审核状态*/
	@Excel(name = "审核状态", width = 15, dicCode = "xs_audit_status")
    @Dict(dicCode = "xs_audit_status")
    @ApiModelProperty(value = "审核状态")
    private java.lang.Integer auditStatus;
	/**行业*/
	@Excel(name = "行业", width = 15, dictTable = "xs_trade_menu", dicText = "name", dicCode = "id")
    @Dict(dictTable = "xs_trade_menu", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "行业")
    private java.lang.String tradeMenuId;
	/**启用禁用*/
	@Excel(name = "启用禁用", width = 15, dicCode = "xs_use_status")
    @Dict(dicCode = "xs_use_status")
    @ApiModelProperty(value = "启用禁用")
    private java.lang.Integer useStatus;
	/**标签*/
	@Excel(name = "标签", width = 15)
    @ApiModelProperty(value = "标签")
    private java.lang.String productLabel;
	/**第三方商品编码*/
	@Excel(name = "第三方商品编码", width = 15)
    @ApiModelProperty(value = "第三方商品编码")
    private java.lang.String otherNo;
	/**商品原价（划线价）*/
	@Excel(name = "商品原价（划线价）", width = 15)
    @ApiModelProperty(value = "商品原价（划线价）")
    private java.math.BigDecimal costPrice;
	/**最低售价*/
	@Excel(name = "最低售价", width = 15)
    @ApiModelProperty(value = "最低售价")
    private java.math.BigDecimal mainPrice;
	/**平台进货价*/
	@Excel(name = "平台进货价", width = 15)
    @ApiModelProperty(value = "平台进货价")
    private java.math.BigDecimal buyingPrice;
	/**结算价*/
	@Excel(name = "结算价", width = 15)
    @ApiModelProperty(value = "结算价")
    private java.math.BigDecimal platPrice;
	/**商品产地*/
	@Excel(name = "商品产地", width = 15)
    @ApiModelProperty(value = "商品产地")
    private java.lang.String originAddress;
	/**商品配送规则(园长)*/
	@Excel(name = "商品配送规则(园长)", width = 15)
    @ApiModelProperty(value = "商品配送规则(园长)")
    private java.lang.String deliveryRole;
	/**注意事项*/
	@Excel(name = "注意事项", width = 15)
    @ApiModelProperty(value = "注意事项")
    private java.lang.String needMess;
	/**保质期*/
	@Excel(name = "保质期", width = 15)
    @ApiModelProperty(value = "保质期")
    private java.lang.String quality;
	/**商品规格(包  件  张)*/
	@Excel(name = "商品规格(包  件  张)", width = 15)
    @ApiModelProperty(value = "商品规格(包  件  张)")
    private java.lang.String specs;
	/**商品打包规格(2斤一份)*/
	@Excel(name = "商品打包规格(2斤一份)", width = 15)
    @ApiModelProperty(value = "商品打包规格(2斤一份)")
    private java.lang.String baleSpecs;
	/**使用规则*/
	@Excel(name = "使用规则", width = 15)
    @ApiModelProperty(value = "使用规则")
    private java.lang.String useRole;
    @Excel(name = "购买数量", width = 15)
    @ApiModelProperty(value = "购买数量")
    private Integer buyCount;
    @Excel(name = "开团数", width = 15)
    @ApiModelProperty(value = "开团数")
    private Integer poolCount;

    /**商品介绍*/
	@Excel(name = "商品介绍", width = 15)
    @ApiModelProperty(value = "商品介绍")
    private java.lang.String productDescription;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识")
    private java.lang.Integer delFlg;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
}
